# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=yank
pkgver=1.3.0
pkgrel=0
pkgdesc="Yank terminal output to clipboard"
url="https://github.com/mptre/yank"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mptre/yank/archive/v$pkgver.tar.gz
	doc-change-default-cmd.patch
	yank-cb
	"
options="!check" # No tests

build() {
	make PREFIX=/usr YANKCMD=/usr/libexec/yank-cb
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install

	install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
	install -Dm755 "$srcdir"/yank-cb -t "$pkgdir"/usr/libexec/
}

sha512sums="
be449c27a28479d96123fc79cafb1c33b4a7f626644765882c686db200e4755cda6ae28404b65f2bcfe02d842c5455ef9f9463cd0f392d02a561a713a6ae07ca  yank-1.3.0.tar.gz
5debb9a51cfe694cb78c9fff21f5846380926f474bae5bd4ad20f2211ab2ac2100b65288379f8c2552b8541f3a21ec8eb4393e82bdeac65e09ceafc6826637c6  doc-change-default-cmd.patch
b3df04624929d0a9ad2c3ec8aeb05709ba45f275fb68d6faba02a476ad8eee8606f34a197c69cc3d09937a9d8342356afdc58bfdc0be0b58a8cfb624ff5c8fa0  yank-cb
"
